<!--Copyright (C) Kherty.  All rights reserved.-->
<Window x:Class="OpenLS.Spreadsheet.UI.PropertiesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
    xmlns:Internals1="clr-namespace:OpenLS.UI.Internals;assembly=OpenLS.UI"
    ShowInTaskbar="False"
    SizeToContent="WidthAndHeight"
    >
    <Window.Resources>
    </Window.Resources>
    <Window.CommandBindings>
        <CommandBinding Command="{x:Static ApplicationCommands.Close}" Executed="OnClose" />
    </Window.CommandBindings>
    <Window.InputBindings>
        <KeyBinding Key="Escape" Command="{x:Static ApplicationCommands.Close}" />
    </Window.InputBindings>
    <DockPanel>
        <DockPanel.Resources>
                <Style TargetType="{x:Type Button}">
                    <Setter Property="Margin" Value="5"/>
                    <Setter Property="MinWidth" Value="74"/>
                    <Setter Property="MinHeight" Value="24"/>
                </Style>
        </DockPanel.Resources>
        <DockPanel DockPanel.Dock="Bottom" LastChildFill="False">
            <Button DockPanel.Dock="Right" IsCancel="true" Content="{x:Static Internals1:UIStringTable.Cancel}" Click="Cancel_Click" HorizontalAlignment="Right"></Button>
            <Button DockPanel.Dock="Right" IsDefault="true" Content="{x:Static Internals1:UIStringTable.OK}" Click="OK_Click" HorizontalAlignment="Right"></Button>
            </DockPanel>
        <ContentControl Content="{Binding}" Margin="3" />
    </DockPanel>
</Window>
